{% extends "base/base_width_left.html" %}
{% load bootstrap3 %}
{% load staticfiles %}

{% block container %}
    {{ block.super }}
    <form action="{{ action|default:'' }}" method="{{ method|default:'POST' }}" class="form-horizontal"
          enctype="multipart/form-data">
        {% csrf_token %}
        {% bootstrap_form form %}
        {% buttons %}
            <button type="submit"
                    class="btn btn-primary col-xs-12 col-md-1 col-md-offset-4">{{ ok|default:'确 定' }}</button>
            <!--         <a href="{{ next }}" class="btn btn-default col-xs-12 col-md-1 col-md-offset-2">{{ cancel|default:'返 回' }}</a> -->
        {% endbuttons %}
    </form>
{% endblock %}
{% block headjs %}{{ form.media }}{% endblock %}
{% block footjs %}
    <!-- 图片上传js -->
    <script src="{% static 'uploadify/uploadimg.js' %}" type="text/javascript"></script>
{% endblock %}
